package com.ztesoft.huangfu.learning.springboot.springbootredis.dao;

import com.ztesoft.huangfu.learning.springboot.springbootredis.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Author: huangfu.daohui
 * Date: 2018/5/23
 * Time: 22:43
 * Version: 1.0
 * Description: mybaties
 **/
@Mapper
public interface UserDao {
    int addUser(User user);

    int delete(String id);

    int update(User user);

    List<User> selectUsers();

    User selectUserById(String id);

}
